package com.wq.goods.model;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wqc
 * @since 2021-09-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class GoodsSku extends Model<GoodsSku> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String code;

    private String name;

    /**
     * 商品条码
     */
    private String sn;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 规格
     */
    private String spec;

    /**
     * 商品状态 1-正常，2-下架，3-删除
     */
    private String status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
